package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
public class RecruitPlan {

    public static final int STATE_BACKLOG = 0;  //待审批状态
    public static final int STATE_OPEN = 1;  //开启状态(已审核)

    private Long id;

    private String name;

    private String type;  //计划类型

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date inputTime;//计划申请时间

    private Employee inputUser;  //申请人

    private Employee auditor;  //计划开启人(审核人)

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date auditTime;  //计划开启时间

    private int state = STATE_BACKLOG;  //计划状态
}